package edu.sctu.practice.class02.shilaihong.text.text19;


import java.awt.*;

/**
 * Created by admin on 2015/11/1.
 */
public class Rectangle extends Graph{
    private int length;
    private int width;

    public Rectangle(Point center,int length,int width){
        super(center);
        this.length=length;
        this.width=width;
    }


    public void getInfo(){
        System.out.println("矩形：\n"+"校准点："+center+"\n矩形长度："+length+"\n矩形宽度："+width);
    }
}
